# 1.导包
from fdfs_client.client import Fdfs_client

# 2.实例化
client = Fdfs_client('client.conf')

# 3.调用函数
result = client.upload_by_filename('/Users/lpf/Desktop/meiduo_project/meiduo_mall/meiduo_mall/z0.png')

print(result)

"""
{
'Group name': 'group1', 
'Remote file_id': 'group1/M00/00/02/wKharF79mTGAGccxABNmzkNH9gU651.png', 
'Status': 'Upload successed.', 
'Local file name': '/Users/lpf/Desktop/meiduo_project/meiduo_mall/meiduo_mall/z0.png', 
'Uploaded size': '1.00MB', 
'Storage IP': '192.168.90.172'}

"""